import 'package:flutter/material.dart';

BottomNavigationBar bottomBars(int currentIndex, Function changeEvent) =>
    BottomNavigationBar(
      items: [
        BottomNavigationBarItem(
          icon: Icon(Icons.ios_share),
          label: '微信分享',
        ),
        BottomNavigationBarItem(
          icon: Icon(Icons.message_outlined),
          label: '消息推送',
        ),
        BottomNavigationBarItem(
          icon: Icon(Icons.upload_outlined),
          label: '埋点上报',
        ),
        BottomNavigationBarItem(
          icon: Icon(Icons.add_to_photos),
          label: '跳小程序',
        )
      ],
      // iconSize: 20,
      type: BottomNavigationBarType.fixed,
      currentIndex: currentIndex,
      onTap: changeEvent,
    );
